package com.calarea;

/**
 * Time    : 2023/3/20 21:37
 * Author  : 王摇摆
 * FileName: Rectangle.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Rectangle extends Shape {
    private int length;
    private int width;
    private String name;

    public Rectangle(int length, int width, String name) {
        this.length = length;
        this.width = width;
        this.name = name;
    }



    @Override
    public double claArea() {
        return length * width;
    }

    @Override
    public String print(String name, double result) {
        return super.print(name, result);
    }
}
